package com.myapp.api.service;

import com.myapp.api.entity.Course;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CourseService {
    public List<Course> getCourses();

    public Course getCourseById(@Param("id") Integer id);

    public Course getCourseByCid(@Param("cid") String cid);

    public Integer getCourseByOneCid(@Param("cid") String cid);

    public List<Course> getCoursebyCname(@Param("cname") String cname);

    public int addCourse(@Param("record") Course record);

    public int deleteCourseById(@Param("id") Integer id);

    public int putCourse(@Param("record") Course record);
}
